package com.herui.ota.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.herui.ota.config.Constant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * table name:  t_device_ota_event
 * author name: amanda.shan
 * create time: 2023-10-26 16:51:33
 */ 
@Data
@ApiModel
@Accessors(chain = true)
@TableName("t_device_ota_event")
public class DeviceOtaEvent extends LightBaseEntity{

	@TableId(type = IdType.AUTO)
	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty(value = "id")
	private Integer id;

	@JsonFormat(pattern = Constant.DATE_TIME_PATTERN, timezone="GMT+8")
	@ApiModelProperty(value = "日期")
	private Date date;

	@ApiModelProperty(value = "版本号")
	private String version;

	@ApiModelProperty(value = "设备编号")
	private String deviceId;

	@ApiModelProperty(value = "渠道型号")
	private String type;

	@ApiModelProperty(value = "渠道")
	private String channel;

	@ApiModelProperty(value = "操作成功标记")
	private boolean sucess;

}

